package com.lovo.hb.dao;

import com.lovo.hb.entity.RoleEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface IRoleDao extends CrudRepository<RoleEntity,Long> {

    public List<RoleEntity> findAllByRoleName(String name);
   @Query("FROM RoleEntity  WHERE roleName like ?1")
    public List<RoleEntity> findAllByLikeRoleName(String name);
}
